<script setup>
  import {ref} from "vue";

  const city = ref('')
</script>

<template>
  <h1>EL-选择器组件</h1>
  <el-select placeholder="请选择你喜欢的城市" style="width: 50%;" v-model="city">
    <el-option label="北京" value="bj"></el-option>
    <el-option label="杭州" value="hz"></el-option>
    <el-option label="青海" value="qh"></el-option>
    <el-option label="潍坊" value="wf"></el-option>
  </el-select>
  <h4>您选择的城市是:{{city}}</h4>
</template>

<style scoped>

</style>